package com.krtech.wecard.module.ramble.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.krtech.wecard.module.ramble.entity.RambleDrawChance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface RambleDrawChanceMapper extends BaseMapper<RambleDrawChance> {

    @Update("update xiaoran_ramble_draw_chance set draw_chance = (draw_chance + 1) where phone = #{phone}")
    public int incrChance(String phone);
}